/* Here, you should not change anything else than the argument in the call below */
addLoadEvent(function() {
    Lighten.lightenElement('bottom');    
})

var Lighten = {
	/*
	 * Takes an id to an element and brightens its colour a notch...
	 * You should implement the lightenElement(id) function.
	 */
	lightenElement: function(id) {

            var element = document.getElementById(id);
            var color = new RGB(window.getComputedStyle(element,null)
                .backgroundColor);
            element.onmouseout = function() {
                element.style.backgroundColor = color.getHex();
            }
            element.onmouseover = function() {
                color2 = new RGB(window.getComputedStyle(element,null)
                    .backgroundColor);
                color2.addRGB(30, 30, 30);
                element.style.backgroundColor = color2.getHex();
            }
        }
}
